package com.qingke.servlet;

import java.io.IOException;

import javax.servlet.Servlet;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

public class InitServlet implements Servlet {
	
	public InitServlet(){
		System.out.println("Servlet �� ��");
	}
	
	@Override
	public void destroy() {
		System.out.println("Servlet ����");
	}

	@Override
	public ServletConfig getServletConfig() {
		return null;
	}

	@Override
	public String getServletInfo() {
		return null;
	}

	@Override
	public void init(ServletConfig arg0) throws ServletException {
		System.out.println("Servlet ��ʼ��");
	}

	@Override
	public void service(ServletRequest arg0, ServletResponse arg1) throws ServletException, IOException {
		System.out.println("Servlet service ���ڹ���");
		arg1.getWriter().append("Service is working:"+System.currentTimeMillis());
	}
	

}
